//
//  TYZCoreInfo.h
//  TYZ_SC
//
//  Created by 李贤立 on 2017/12/12.
//  Copyright © 2017年 Capfer. All rights reserved.
//

#import "TYZModel.h"
@class KHJUserInfo;
#define CoreInfo [TYZCoreInfo sharedCoreInfo]
#define UserInfo            CoreInfo.userInfo
typedef NS_ENUM(NSInteger, TYZLanguageType) {
    LANGUAGE_TYPE_SIMPLIFIED, // 中文简体
    LANGUAGE_TYPE_TRADITIONAL // 中文繁体
};
typedef NS_ENUM(NSInteger, TYZDeviceType) {
    DEVICE_TYPE_IPHONE,
    DEVICE_TYPE_IPAD,
    DEVICE_TYPE_CARPLAY,
    DEVICE_TYPE_OTHER
};

/**
 *  跳转到设置界面的类型
 */
typedef NS_ENUM(NSInteger, TYZPushSettingType) {
    /**无线局域网*/
    PushSettingType_WIFI = 0,
    /**蓝牙*/
    PushSettingType_Bluetooth = 1,
    /**蜂窝移动网络*/
    PushSettingType_MOBILE_DATA_SETTINGS_ID = 2,
    /**个人热点*/
    PushSettingType_INTERNET_TETHERING = 3,
    /**运营商*/
    PushSettingType_Carrier = 4,
    /**通知*/
    PushSettingType_NOTIFICATIONS_ID = 5,
    /**通用*/
    PushSettingType_INTERNET_General = 6,
    /**通用关于本机*/
    PushSettingType_About = 7,
    /**通用键盘*/
    PushSettingType_Keyboard = 8,
    /**通用辅助功能*/
    PushSettingType_ACCESSIBILITY = 9,
    /**通用语言和地区*/
    PushSettingType_INTERNET_INTERNATIONAL = 10,
    /**墙纸*/
    PushSettingType_Wallpaper = 11,
    /**Siri*/
    PushSettingType_SIRI = 12,
    /**隐私*/
    PushSettingType_Privacy = 13,
    /**Safari*/
    PushSettingType_SAFARI = 14,
    /**音乐*/
    PushSettingType_MUSIC = 15,
    /**音乐均衡器*/
    PushSettingType_MUSICEQ = 16,
    /**照片与相机*/
    PushSettingType_Photos = 17,
    /**FaceTime*/
    PushSettingType_INTERNET_FACETIME = 18
};
@interface TYZCoreInfo : TYZModel
TYZSingleto_h(CoreInfo)
/**
 *  初始化基本信息
 */
+ (void)initial;
/**
 *  用户信息模型
 */
@property (nonatomic, strong) KHJUserInfo *userInfo;
/**
 *  版本号
 */
@property(nonatomic, copy) NSString *app_version;
/**
 *  字体大小
 */
@property(nonatomic, assign) CGFloat fontSize;
/**
 *  当前iOS系统
 */
@property(nonatomic, copy) NSString *ios_system;
/**
 *  当前设备类型
 */
@property(nonatomic, assign) TYZDeviceType DeviceType;
/**
 *  语言类型
 */
@property(nonatomic, assign) TYZLanguageType LanguageType;
/**
 *  用户唯一的id
 */
@property(nonatomic, copy) NSString *user_id;
/**
 *  是否已经登录
 */
@property(nonatomic, assign) BOOL isLogined;
/**
 *  session.id
 */
@property (nonatomic, copy) NSString *session_id;
/**
 *  rememberMe
 */
@property (nonatomic, copy) NSString *rememberMe;
/**
 *  未读通知的数量
 */
@property(nonatomic, assign) NSInteger notifacationNumber;
/**
 *  跳转到设置界面
 *
 *  @param pushSettingType 设置界面的类型
 */
+ (void)pushToDeviceSettingWithPushSettingType:(TYZPushSettingType)pushSettingType;
@end
